package com.qfedu.labsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qfedu.labsystem.dao.RightMapper;
import com.qfedu.labsystem.entity.bo.RightBO;
import com.qfedu.labsystem.service.RightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName RightServiceImpl
 * @Author ykx
 * @Date 2024/4/5 11:59
 * @Version 1.0
 */
@Service
public class RightServiceImpl extends ServiceImpl<RightMapper, RightBO> implements RightService {

    @Autowired
    private RightMapper rightMapper;

    @Override
    public List<RightBO> getRightList() {
        return rightMapper.getRightList();
    }

    @Override
    public Boolean updateRight(RightBO rightBO) {
        return updateById(rightBO);
    }

    @Override
    public Boolean deleteRight(Integer id) {
        return removeById(id);
    }
}
